package board.model.dao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import board.dto.BoardDTO;

public interface DAO {

	public int selectTotalContent(HashMap map) throws SQLException;
	public ArrayList<BoardDTO> selectBoardContentByPage(HashMap map)
			throws SQLException;
	public BoardDTO selectContentByPlus(int no) throws SQLException;
	public BoardDTO selectContentByMinusContent(int no) throws SQLException;
	public BoardDTO selectContentByNO(int no) throws SQLException;
	public int updateViewCount(int no) throws SQLException;
	public Object insertContent(BoardDTO ndto) throws SQLException; 
	public int deleteContentByNO(int no) throws SQLException;
	public int updateUploadFileData(int no) throws SQLException;
	public int updateContent(BoardDTO ndto) throws SQLException;
	public List selectboardListForMain() throws SQLException;
	public List selectFreeBoardListForMain() throws SQLException;
}
